﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Profiles.aspx.vb" Inherits="WebApplication1.Profiles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <asp:ListView ID="ListView1" runat="server" DataKeyNames="UserID" 
        DataSourceID="SqlDataSource1">
        <AlternatingItemTemplate>
                <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' />&nbsp;
            <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' />
            <br />
            <img src ='<%# Eval("portrait") %>' style ="width:100px;height:100px" />
            <br />
            DOB:
            <asp:Label ID="DOBLabel" runat="server" Text='<%# Eval("DOB") %>' />
            <br />
            Registrationdate:
            <asp:Label ID="RegistrationdateLabel" runat="server" 
                Text='<%# Eval("Registrationdate") %>' />
            <br />
            Gender:
            <asp:Label ID="GenderLabel" runat="server" Text='<%# Eval("Gender") %>' />
            <br />
            <br />
<br /></span>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <span style="">UserID:
            <asp:Label ID="UserIDLabel1" runat="server" Text='<%# Eval("UserID") %>' />
            <br />
            FirstName:
            <asp:TextBox ID="FirstNameTextBox" runat="server" 
                Text='<%# Bind("FirstName") %>' />
            <br />
            LastName:
            <asp:TextBox ID="LastNameTextBox" runat="server" 
                Text='<%# Bind("LastName") %>' />
            <br />
            portrait:
            <asp:TextBox ID="portraitTextBox" runat="server" 
                Text='<%# Bind("portrait") %>' />
            <br />
            DOB:
            <asp:TextBox ID="DOBTextBox" runat="server" Text='<%# Bind("DOB") %>' />
            <br />
            Registrationdate:
            <asp:TextBox ID="RegistrationdateTextBox" runat="server" 
                Text='<%# Bind("Registrationdate") %>' />
            <br />
            Gender:
            <asp:TextBox ID="GenderTextBox" runat="server" Text='<%# Bind("Gender") %>' />
            <br />
            <asp:Button ID="UpdateButton" runat="server" CommandName="Update" 
                Text="Update" />
            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                Text="Cancel" />
            <br /><br /></span>
        </EditItemTemplate>
        <EmptyDataTemplate>
            <span>No data was returned.</span>
        </EmptyDataTemplate>
        <InsertItemTemplate>
            <span style="">UserID:
            <asp:TextBox ID="UserIDTextBox" runat="server" Text='<%# Bind("UserID") %>' />
            <br />FirstName:
            <asp:TextBox ID="FirstNameTextBox" runat="server" 
                Text='<%# Bind("FirstName") %>' />
            <br />LastName:
            <asp:TextBox ID="LastNameTextBox" runat="server" 
                Text='<%# Bind("LastName") %>' />
            <br />portrait:
            <asp:TextBox ID="portraitTextBox" runat="server" 
                Text='<%# Bind("portrait") %>' />
            <br />DOB:
            <asp:TextBox ID="DOBTextBox" runat="server" Text='<%# Bind("DOB") %>' />
            <br />Registrationdate:
            <asp:TextBox ID="RegistrationdateTextBox" runat="server" 
                Text='<%# Bind("Registrationdate") %>' />
            <br />Gender:
            <asp:TextBox ID="GenderTextBox" runat="server" Text='<%# Bind("Gender") %>' />
            <br />
            <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                Text="Insert" />
            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                Text="Clear" />
            <br /><br /></span>
        </InsertItemTemplate>
        <ItemTemplate>
               <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' />&nbsp;
            <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' />
            <br />
            <img src ='<%# Eval("portrait") %>' style ="width:100px;height:100px" />
            <br />
            DOB:
            <asp:Label ID="DOBLabel" runat="server" Text='<%# Eval("DOB") %>' />
            <br />
            Registrationdate:
            <asp:Label ID="RegistrationdateLabel" runat="server" 
                Text='<%# Eval("Registrationdate") %>' />
            <br />
            Gender:
            <asp:Label ID="GenderLabel" runat="server" Text='<%# Eval("Gender") %>' />
            <br />
            <br />
<br /></span>
        </ItemTemplate>
        <LayoutTemplate>
            <div ID="itemPlaceholderContainer" runat="server" style="">
                <span runat="server" id="itemPlaceholder" />
            </div>
            <div style="">
            </div>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <span style="">UserID:
            <asp:Label ID="UserIDLabel" runat="server" Text='<%# Eval("UserID") %>' />
            <br />
            FirstName:
            <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' />
            <br />
            LastName:
            <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' />
            <br />
            portrait:
            <asp:Label ID="portraitLabel" runat="server" Text='<%# Eval("portrait") %>' />
            <br />
            DOB:
            <asp:Label ID="DOBLabel" runat="server" Text='<%# Eval("DOB") %>' />
            <br />
            Registrationdate:
            <asp:Label ID="RegistrationdateLabel" runat="server" 
                Text='<%# Eval("Registrationdate") %>' />
            <br />
            Gender:
            <asp:Label ID="GenderLabel" runat="server" Text='<%# Eval("Gender") %>' />
            <br />
<br /></span>
        </SelectedItemTemplate>
    </asp:ListView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SkinConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:SkinConnectionString.ProviderName %>" 
        SelectCommand="SELECT [UserID], [FirstName], [LastName], [portrait], [DOB], [Registrationdate], [Gender] FROM [Userdetails]">
    </asp:SqlDataSource>
</asp:Content>
